
<!-- 产品属性列表视图 -->
<li class="c_f">
<span class="tit"><?php echo CHtml::encode($data->za_title)?>: </span>
<div class="content">
<?php 
	$valuedata = explode(',',$data->za_value);
	foreach($valuedata as $val){
		$listdata[$val] = $val;
	}
	if($data->za_text_type=='checkbox'){
		echo CHtml::checkBoxList('ProAttribute['.$data->za_id.']',isset($activeAttrbute[$data->za_id])?$activeAttrbute[$data->za_id]:'',$listdata,array('separator'=>'&nbsp;&nbsp;','template'=>'<span class="mr">{input}{label}</span>','class'=>'chk'));
	}elseif($data->za_text_type=='select'){
		echo CHtml::dropDownList('ProAttribute['.$data->za_id.']',isset($activeAttrbute[$data->za_id])?$activeAttrbute[$data->za_id]:'',$listdata,array('class'=>'s_ipt'));
	}elseif($data->za_text_type=='radio'){
		echo CHtml::radioButtonList('ProAttribute['.$data->za_id.']',isset($activeAttrbute[$data->za_id])?$activeAttrbute[$data->za_id]:'',$listdata,array('separator'=>'&nbsp;&nbsp;','template'=>'<span class="mr">{input}{label}</span>','class'=>'radio'));
	}elseif($data->za_text_type=='input'){
		echo CHtml::textField('ProAttribute['.$data->za_id.']',isset($activeAttrbute[$data->za_id])?$activeAttrbute[$data->za_id]:$valuedata['0'],array('class'=>'t_ipt ipt_bg min_t_ipt'));
	}elseif($data->za_text_type=='textarea'){
		echo CHtml::textArea('ProAttribute['.$data->za_id.']',isset($activeAttrbute[$data->za_id])?$activeAttrbute[$data->za_id]:$valuedata['0']);
	}
?>
</div>
</li>